package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.WxPayOrder;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by MJS on 2017/6/20.
 */
public interface WxPayOrderRepository extends JpaRepository<WxPayOrder, Long> {
    public WxPayOrder findByOutTradeNo(String outTradeNo);

    public int deleteByOutTradeNo(String outTradeNo);

    public WxPayOrder findByOutTradeNoAndUserId(String outTradeNo, long userId);
}
